package com.david.dubbo.annotation.service;

import com.david.dubbo.annotation.domain.User;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @author David
 * @version V1.0
 * @Package com.david.dubbo.annotation.service
 * @date 2021/4/11 11:17
 */
@Service
public class DavidServiceComponet {
    @Reference
    private DavidService davidService;

    public void queryUserById(int id){
        User user = davidService.queryUserById(id);
        System.out.println("user = " + user);
    }
}
